//
//  HandlerProtocol.swift
//  
//
//  Created by 孙长坦 on 2021/12/30.
//

import Foundation
import LibService

public protocol HandlerProtocol: AnyObject {
 
    static var type: String { get }
    
    var type: String { get }
    
    var module: ModuleProtocol { get }

    init(module: ModuleProtocol)
    
    func handle(params: [String: Any]?, completion: RouterServiceProtocol.RouteCompletion?)
}

public extension HandlerProtocol {
    
    var type: String {
        return Self.type
    }
}
